<?php

namespace App\Exports;

use App\User;
use Maatwebsite\Excel\Concerns\FromCollection;

class UsersExport implements FromCollection
{

    public function __construct()
    {

    }

    /**
     * 数据是集合
    * @return \Illuminate\Support\Collection
    */
    public function collection()
    {
        #  return User::all();
        return collect([
            [1,2,4],
            [3,4,5]
        ]);
    }


}
